<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html lang="true">
<head>  
  <title>日记/新增</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/autosave.js" language="javascript" type="text/javascript"></script>
  <script src="js/ajaxrequest.js" language="javascript" type="text/javascript"></script>
</head>
<body onload="p();">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" height="22" bgcolor="#FFFFFF" class="STYLE3"><div align="center">日记本</div></td>
          </tr>
          <html:form styleId="list" action="diary.do?method=addDiary_Do">
          <tr>
            <td class="STYLE1" bgcolor="#FFFFFF"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
              <tr>
                <td height="22" bgcolor="#FFFFFF" class="STYLE1"><div align="left">
                <html:text property="diaryDate" value="${diaryDate}" size="20" /></div><div align="left">
                <html:text property="weather" value="晴" size="20" /></div></td>
              </tr>
              <tr>
                <td height="22" bgcolor="#FFFFFF" class="STYLE1"><div align="left"><hr width="100%" color="#b5d6e6"/></div></td>
              </tr>              
              <tr>
                <td class="STYLE1" height="22" bgcolor="#FFFFFF"><div align="left"><textarea name="diaryText" id="diaryText" style="width:100%; height:400px;">请写日志</textarea>               
                <script type="text/javascript">
                    var oFCKeditor = new FCKeditor( 'diaryText' ) ;
                    oFCKeditor.BasePath = 'fckeditor/' ;
                    oFCKeditor.ToolbarSet = 'Default' ;
                    oFCKeditor.Width = '100%' ;
                    oFCKeditor.Height = '350' ;
                    oFCKeditor.Value = '' ;
                    oFCKeditor.ReplaceTextarea();                     
                    // oFCKeditor.Create() ;
                 </script>
                 <br/></div></td>
              </tr>          
            </table></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#FFFFFF" class="STYLE1"><div align="center">
            <html:submit value="提交"/><html:reset value="取消"/></div></td>
          </tr>
          </html:form>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@include file="../no_page.jsp" %>
</table>
</body>
</html:html>
